<!DOCTYPE html>
<html>
<head>
<script>
if (document.location.search === "?close-window")
    window.close();
else
    window.open("open-and-close-window.html?close-window");
</script>
</head>
</html>
